#!/bin/bash

DIR="$( cd "$( dirname "$0"  )" && pwd  )"

#rm web file
rm -rf ${DIR}/node.tgz

if [ ! -d ${DIR}/tarsnode ]; then
    echo "tarsnod null."
    exit -1
fi

cd ${DIR}
tar czfv ${DIR}/node.tgz tarsnode_install.sh tarsnode


#build docker
docker rmi andi_hello
cd ${DIR}
docker build -t andi_hello .

